<?php

namespace App\Chat\Interfaces;

use App\Chat\Dto\ChatLoginDTO;

interface ChatUserAuthInterface
{
    public function autoLogin(array $params): array;

    /**
     * 登录
     * @param ChatLoginDTO $params
     * @return array
     */
    public function passwordLogin(ChatLoginDTO $params): array;

    /**
     * 退出登录
     * @return mixed
     */
    public function logout(): bool;
}